# readme 面向对象，当继承遇到私有属性和私有方法
# 子类不能继承和调用父类的私有属性和私有方法
class Person():
    def __init__(self):
        self.__name = '小明'
        self.age = 10

    def test1(self):
        print("----------test1------------")

    def __test2(self):
        print("----------test2------------")

    def test3(self):
        print("name=", self.__name)
        self.__test2()


class xiaoming(Person):
    pass


xiao1 = xiaoming()
xiao1.test1()
xiao1.test3()
